package com.csii.activiti.server.abstraction.uilts;

import cn.hutool.core.collection.CollUtil;
import com.csii.activiti.server.abstraction.entity.ActUserDetail;

public class ActCurrentUserUtils {

    private static ActUserDetail currentUserDetail;

    static{
        ActUserDetail actUserDetail = new ActUserDetail();
//        actUserDetail.setNickname("李1");
//        actUserDetail.setUsername("li1");
        actUserDetail.setNickname("周1");
        actUserDetail.setUsername("zhou1");
        actUserDetail.setDeptCodes(CollUtil.newArrayList("code1"));
        actUserDetail.setRoleCodes(CollUtil.newArrayList("role1"));
        currentUserDetail = actUserDetail;
    }


    public static ActUserDetail getCurrentUserDetail() {
        return currentUserDetail;
    }

    public static void setCurrentUserDetail(ActUserDetail currentUserDetail) {
        ActCurrentUserUtils.currentUserDetail = currentUserDetail;
    }
}
